package com.poster.enums;

import lombok.Getter;

@Getter
public enum PermissionType {

    TEST("", "test", "测试权限"),
    SUB_TEST("", "sub_test","sub_test", "测试子类"),
    SUB_SUB_TEST("sub_test", "sub_sub_test","sub_sub_test", "测试子类子类");

    private String pCode = null;
    private final String code;
    private final String name;
    private final String introduction;

    PermissionType(String pCode, String code, String name, String introduction) {
        this.pCode = pCode;
        this.code = code;
        this.name = name;
        this.introduction = introduction;
    }

    PermissionType(String code, String name, String introduction) {
        this.code = code;
        this.name = name;
        this.introduction = introduction;
    }
}